PROGRAMS	= arglist arglist_opt getopt getopt_long print_env compile_macro print_err_info core_dump syscall_speed 

.PHONY:         all clean

all:            $(PROGRAMS)

clean: 
	@rm -f *.o *.a $(PROGRAMS) a.out core

arglist: arglist.o

print_env: print_env.o

print_err_info: print_err_info.o

core_dump: core_dump.c
	gcc -g -o $@  $<

syscall_speed: 
	gcc -o $@ -D NOSYSCALL syscall_speed.c
	# gcc -o $@ syscall_speed.c

compile_macro: 
	gcc -o $@ -D NDEBUG -D HELLO=3 compile_macro.c

hello_go:
	GOOS=linux go build -o hello_go hello.go
